NDepend.API Documentation
ToHours(Nullable<Single>) Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class > ToHours Method : ToHours(Nullable<Single>) Method
The number of hours.
Gets a System.TimeSpan value, with total floating number of hours equals to floating value nullableNbHoursFloat.
Syntax

Parameters

nullableNbHoursFloat
The number of hours.
Exceptions
ExceptionDescription
This exception is thrown if the expected time span is greater than System.TimeSpan.System.TimeSpan.MaxValue or lower than System.TimeSpan.System.TimeSpan.MinValue.
Remarks
if nullableNbHoursFloat is null, System.TimeSpan.System.TimeSpan.Zero is returned.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members
Overload List